package com.liu.community.server;/*
 *@Author:Liu Xing-zhi
 *Description:
 *Date:Crated in 15:27 2021/11/12
 */

import com.liu.community.dto.BlogDto;
import com.liu.community.dto.PageDto;
import com.liu.community.dto.QuestionDto;
import com.liu.community.pojor.Blog;

import java.util.List;

public interface BlogService {
    void createOrUpdateBlog(Blog blog);

    BlogDto queryBlogById(Integer id);

    PageDto<BlogDto> list(Integer id, Integer currentPage, Integer pageSize);

    List<BlogDto> queryRelated(BlogDto blogDto);

    void increViewCount(Integer id);
}
